﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Pazinga
{
    public class Tank:WarObject
    {
        private int LeftCannonFires;
        private int RightCannonFires;

        public int LeftFireCount
        {
            get { return LeftCannonFires; }
            set { LeftCannonFires = value; }
        }

        public int RightFireCount 
        {
            get { return RightCannonFires; }
            set { RightCannonFires = value; }
        }

        /// <summary>
        /// Gets Remain Ammo
        /// </summary>
        public int RemainAmmo 
        {
            get { return LeftCannonFires + RightCannonFires; }
        }

        /// <summary>
        /// Create new Tank object
        /// </summary>
        public Tank() 
        {
            LeftCannonFires = 5;
            RightCannonFires = 5;
        }

        /// <summary>
        /// Add Ammo to tank cannons
        /// </summary>
        /// <param name="AmmoCount"></param>
        public void AddAmmo(int AmmoCount)
        {
            LeftCannonFires += AmmoCount;
            RightCannonFires += AmmoCount;
        }
    }
}
